package com.banmajio.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 我的志愿服务活动(包含报名,加入,参与的所有活动及其获得的时长)
 * </p>
 *
 * @author edm.northking.net
 * @since 2023-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MyServiceActivity extends BaseEntity {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long volunteerServiceActivityId;

    private String activityName;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long voluntaryOrgId;

    private String orgName;

    private String contractName;

    private String contractMobile;

    private String contractTelephone;

    private String positionName;

    private Integer status;

    private String applyDate;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long serviceHour;

    @JsonFormat(locale = "zh" , timezone = "GMT+8" , pattern = "yyyy-MM-dd")
    private Date serviceHourAwardDate;

    private Integer serviceAttitude;

    private Integer punctuality;

    private Integer professionalLevel;

    private Double averageScore;

    private String evaluation;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long positionId;

    @JsonFormat(locale = "zh" , timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss")
    private Date serviceSubmitTime;

    @JsonFormat(locale = "zh" , timezone = "GMT+8" , pattern = "yyyy-MM-dd")
    private Date submitTimeStart;

    @JsonFormat(locale = "zh" , timezone = "GMT+8" , pattern = "yyyy-MM-dd")
    private Date submitTimeEnd;

    private String serviceCategory;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long volunteerInfoId;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    private String operationReason;

    private List<Integer> statusList;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startDate;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endDate;

    @JsonProperty("serviceTime")
    private String showServiceHour;

}
